package exception

import (
	"gitee.com/xxhsjp/x-core/app"
	"gitee.com/xxhsjp/x-core/enums"
)

var SignatureIncorrectException = NewTraceError(&SignatureIncorrect{
	code: enums.SignatureIncorrect.Code,
	msg:  enums.SignatureIncorrect.Text,
})

type SignatureIncorrect struct {
	code string
	msg  string
}

func (e *SignatureIncorrect) Code() string {
	return app.App.Code + e.code
}

func (e *SignatureIncorrect) Error() string {
	return e.msg
}
